package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.pay.dto.CardVipRecordDto;
import com.aiti.lulian.pay.model.CardVipRecord;
import com.aiti.lulian.pay.vo.CardVipRecordVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardVipRecordMapper extends SuperMapper<CardVipRecord> {
    int selectUserRole(@Param("userId") String userId, @Param("roleId") String roleId);

    void insertUserRole(@Param("id") String id, @Param("userId") String userId, @Param("roleId") String roleId);

    List<CardVipRecordVo> selectListCustom(@Param("cardVipRecordDto") CardVipRecordDto cardVipRecordDto, Page<CardVipRecord> page);
}